package com.blog.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 文章相关的实体类
 *
 * @author wmb
 *
 * @since 2021-2-8
 */
@ApiModel("文章相关的实体类")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Content implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("文章的主键编号")
    private Integer id;

    @ApiModelProperty("内容标题")
    private String title;

    @ApiModelProperty("标题图片")
    private String titlePicture;

    @ApiModelProperty("内容缩略名")
    private String slug;

    @ApiModelProperty("内容生成时的GMT unix时间戳")
    private Date createTime;

    @ApiModelProperty("内容更改时的GMT unix时间戳")
    private Date modifyTime;

    @ApiModelProperty("内容文字")
    private String content;

    @ApiModelProperty("内容所属用户id")
    private Integer authorId;

    @ApiModelProperty("内容类别")
    private String type;

    @ApiModelProperty("内容状态")
    private String status;

    @ApiModelProperty("标签列表")
    private String tags;

    @ApiModelProperty("分类列表")
    private String categories;

    @ApiModelProperty("点击次数")
    private Integer hits;

    @ApiModelProperty("内容所属评论数")
    private Integer commentsNum;

    @ApiModelProperty("是否允许评论")
    private Integer allowComment;

    @ApiModelProperty("是否允许ping")
    private Integer allowPing;

    @ApiModelProperty("允许出现在聚合中")
    private Integer allowFeed;
}
